package com.melesta.engine.tracking;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.melesta.engine.EngineActivity;
import com.melesta.engine.EngineApp;
import com.melesta.engine.Error;
import com.melesta.engine.Log;

public class InstallBroadcastReceiver extends BroadcastReceiver
{
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    while (true)
    {
      String str1;
      StringBuilder localStringBuilder;
      int j;
      try
      {
        str1 = paramIntent.getExtras().getString("referrer");
        localStringBuilder = new StringBuilder();
        String[] arrayOfString1 = str1.split("&");
        int i = arrayOfString1.length;
        j = 0;
        if (j < i)
        {
          String str2 = arrayOfString1[j];
          String[] arrayOfString2 = str2.split("=");
          if ((arrayOfString2.length != 2) || ((arrayOfString2[0].equals("debugMode")) && (arrayOfString2[1].equals("1"))))
            break label275;
          if (localStringBuilder.length() != 0)
            localStringBuilder.append("&");
          localStringBuilder.append(str2);
        }
      }
      catch (Exception localException)
      {
        Error.processException(localException);
        return;
      }
      Log.d("engine", "InstallBroadcastReceiver: " + paramIntent.getAction());
      String str3 = localStringBuilder.toString();
      Log.d("engine", "InstallBroadcastReceiver: " + str3);
      Log.d("engine", "InstallBroadcastReceiver: " + str1);
      Object[] arrayOfObject = new Object[4];
      arrayOfObject[0] = "referrer";
      arrayOfObject[1] = str1;
      arrayOfObject[2] = "version";
      arrayOfObject[3] = (EngineApp.getAppId() + ":" + EngineApp.getAppVersion());
      EngineActivity.flurryLogEvent("referrer", false, arrayOfObject);
      return;
      label275: j++;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.engine.tracking.InstallBroadcastReceiver
 * JD-Core Version:    0.6.2
 */